]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
pushModal: clear focus after pushing a new level
authorDan Winship <danw@gnome.org>
Fri, 29 Oct 2010 18:54:53 +0000 (14:54 -0400)
committerDan Winship <danw@gnome.org>
Fri, 29 Oct 2010 19:06:01 +0000 (15:06 -0400)
This way the new modal level is independent of whatever may have been
happening before. Fixes a problem with status menus becoming active
again from inside the app switcher, etc.

js/ui/main.js

index 8e46209e62f15c0b0d879b7213d538c20fd63090..5177df6ecde76a5a346a05f5eee4439832d212e5 100644 (file)
@@ -390,6 +390,7 @@ function pushModal(actor) {
     }
     modalActorFocusStack.push([actor, curFocus]);
 
+    global.stage.set_key_focus(null);
     return true;
 }